package com.woniu.p2p.behindService;

import com.github.pagehelper.PageInfo;
import com.woniu.p2p.entity.Coupon;

import java.util.Date;
import java.util.List;

public interface BehindCouponService {
    /*条件查询*/
    PageInfo<Coupon> getcouponbycons(String status, String keyword, Date starttime, Date endtime, Integer currentPage, int pagesize);
    /*根据id删除优惠券并重新查询*/
    PageInfo<Coupon> deletebyid(String status, String keyword, Date starttime, Date endtime, Integer currentPage, int pagesize, Integer couponId);
    /*根据id查询优惠券*/
    Coupon findcouponbyid(Integer couponId);
    /*添加优惠券*/
    int addcoupon(Coupon coupon);
    /*批量删除*/
    int piliangdel(int[] ids);
    /*查询所有优惠券*/
    List<Coupon> selectAll();
}
